package ui.asistent;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JMenu;
import javax.swing.JPopupMenu;
import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JCheckBoxMenuItem;
import java.awt.Font;
import javax.swing.ImageIcon;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JInternalFrame;
import javax.swing.JDesktopPane;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JTextField;

public class Asistent extends JFrame {

	private JPanel contentPane;

	

	public Asistent() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 1035, 640);
		
		JMenuBar menuBar = new JMenuBar();
		menuBar.setFont(new Font("Segoe UI", Font.BOLD, 15));
		menuBar.setBackground(new Color(173, 216, 230));
		setJMenuBar(menuBar);
		
		JMenu mnAsistati = new JMenu("Asistati");
		mnAsistati.setFont(new Font("Segoe UI", Font.BOLD, 15));
		mnAsistati.setBackground(new Color(169, 169, 169));
		menuBar.add(mnAsistati);
		
		JMenuItem mntmVizualizare = new JMenuItem("Vizualizeaza");
		mntmVizualizare.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
	
		     //   desktopPane.add(va);
			// va.setVisible(true);	 
		//	aa.dispose();
			 
			 
						}
		});
		mntmVizualizare.setIcon(new ImageIcon(Asistent.class.getResource("/assets/images/view.png")));
		mntmVizualizare.setBackground(new Color(173, 216, 230));
		mnAsistati.add(mntmVizualizare);
		
		JMenuItem mntmAdauga = new JMenuItem("Adauga");
		mntmAdauga.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				
			}
		});
		mntmAdauga.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
		  //      desktopPane.add(aa);
		//	 aa.setVisible(true);
		//	 va.dispose();
				
			}
		});
		mntmAdauga.setIcon(new ImageIcon(Asistent.class.getResource("/assets/images/add1.png")));
		mntmAdauga.setBackground(new Color(173, 216, 230));
		mnAsistati.add(mntmAdauga);
		
		JMenuItem mntmEvaluare = new JMenuItem("Evaluare");
		mntmEvaluare.setBackground(new Color(173, 216, 230));
		mnAsistati.add(mntmEvaluare);
		
		JMenu mnFiseEvaluare = new JMenu("Fise de Evaluare");
		mnFiseEvaluare.setFont(new Font("Segoe UI", Font.BOLD, 15));
		menuBar.add(mnFiseEvaluare);
		
		JMenuItem mntmVizualizare_1 = new JMenuItem("Vizualizeaza");
		mntmVizualizare_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		mntmVizualizare_1.setIcon(new ImageIcon(Asistent.class.getResource("/assets/images/view.png")));
		mntmVizualizare_1.setBackground(new Color(173, 216, 230));
		mnFiseEvaluare.add(mntmVizualizare_1);
		
		JMenuItem mntmAdauga_1 = new JMenuItem("Adauga");
		mntmAdauga_1.setIcon(new ImageIcon(Asistent.class.getResource("/assets/images/add1.png")));
		mntmAdauga_1.setBackground(new Color(173, 216, 230));
		mnFiseEvaluare.add(mntmAdauga_1);
		
		JMenu mnVoluntari = new JMenu("Voluntari");
		mnVoluntari.setFont(new Font("Segoe UI", Font.BOLD, 15));
		menuBar.add(mnVoluntari);
		
		JMenuItem mntmVizualizeaza = new JMenuItem("Vizualizeaza");
		mntmVizualizeaza.setIcon(new ImageIcon(Asistent.class.getResource("/assets/images/view.png")));
		mntmVizualizeaza.setBackground(new Color(173, 216, 230));
		mnVoluntari.add(mntmVizualizeaza);
		
		JMenuItem mntmAdauga_2 = new JMenuItem("Adauga");
		mntmAdauga_2.setIcon(new ImageIcon(Asistent.class.getResource("/assets/images/add1.png")));
		mntmAdauga_2.setBackground(new Color(173, 216, 230));
		mnVoluntari.add(mntmAdauga_2);
		
		JMenu mnActivitati = new JMenu("Activitati");
		mnActivitati.setFont(new Font("Segoe UI", Font.BOLD, 15));
		menuBar.add(mnActivitati);
		
		JMenuItem mntmVizualizeaza_1 = new JMenuItem("Vizualizeaza");
		mntmVizualizeaza_1.setIcon(new ImageIcon(Asistent.class.getResource("/assets/images/view.png")));
		mntmVizualizeaza_1.setBackground(new Color(173, 216, 230));
		mnActivitati.add(mntmVizualizeaza_1);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(240, 255, 255));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		//ppp= new a();		
		//desktopPane.add(ppp);
		//ppp.setVisible(true);
	}
	private static void addPopup(Component component, final JPopupMenu popup) {
	}
}
